
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-icon-test"></use>
                    </svg>
                    <div class="name">√○</div>
                    <div class="fontclass">#icon-icon-test</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xingbienan"></use>
                    </svg>
                    <div class="name">性别男</div>
                    <div class="fontclass">#icon-xingbienan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xingbienv"></use>
                    </svg>
                    <div class="name">性别女</div>
                    <div class="fontclass">#icon-xingbienv</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-richangweisheng"></use>
                    </svg>
                    <div class="name">日常卫生</div>
                    <div class="fontclass">#icon-richangweisheng</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weishengjianshenduqingjie"></use>
                    </svg>
                    <div class="name">卫生间深度清洁</div>
                    <div class="fontclass">#icon-weishengjianshenduqingjie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chufangshenduqingjie"></use>
                    </svg>
                    <div class="name">未来家</div>
                    <div class="fontclass">#icon-chufangshenduqingjie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chumanchong"></use>
                    </svg>
                    <div class="name">除螨虫</div>
                    <div class="fontclass">#icon-chumanchong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zuofanxiwan"></use>
                    </svg>
                    <div class="name">做饭洗碗</div>
                    <div class="fontclass">#icon-zuofanxiwan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-boliqingjie"></use>
                    </svg>
                    <div class="name">玻璃清洁</div>
                    <div class="fontclass">#icon-boliqingjie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-genghuanmenbashou"></use>
                    </svg>
                    <div class="name">更换门把手</div>
                    <div class="fontclass">#icon-genghuanmenbashou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-kaisuo"></use>
                    </svg>
                    <div class="name">开锁</div>
                    <div class="fontclass">#icon-kaisuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-genghuansuoti"></use>
                    </svg>
                    <div class="name">更换锁体</div>
                    <div class="fontclass">#icon-genghuansuoti</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-genghuansuoxin"></use>
                    </svg>
                    <div class="name">更换锁芯</div>
                    <div class="fontclass">#icon-genghuansuoxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qichekaisuo"></use>
                    </svg>
                    <div class="name">汽车开锁</div>
                    <div class="fontclass">#icon-qichekaisuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-genghuanzhengtisuo"></use>
                    </svg>
                    <div class="name">更换整体锁</div>
                    <div class="fontclass">#icon-genghuanzhengtisuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-guandaoshutong"></use>
                    </svg>
                    <div class="name">管道疏通</div>
                    <div class="fontclass">#icon-guandaoshutong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-fangshuizhilou"></use>
                    </svg>
                    <div class="name">防水治漏</div>
                    <div class="fontclass">#icon-fangshuizhilou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shuiguanlongtou"></use>
                    </svg>
                    <div class="name">水管笼头</div>
                    <div class="fontclass">#icon-shuiguanlongtou</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dengjudianlu"></use>
                    </svg>
                    <div class="name">灯具电路</div>
                    <div class="fontclass">#icon-dengjudianlu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chuweijieju"></use>
                    </svg>
                    <div class="name">厨卫洁具</div>
                    <div class="fontclass">#icon-chuweijieju</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-baoxianxiangkaisuo"></use>
                    </svg>
                    <div class="name">保险箱开锁</div>
                    <div class="fontclass">#icon-baoxianxiangkaisuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-kongtiaoyiji"></use>
                    </svg>
                    <div class="name">空调移机</div>
                    <div class="fontclass">#icon-kongtiaoyiji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-kongtiaojiafu"></use>
                    </svg>
                    <div class="name">空调加氟</div>
                    <div class="fontclass">#icon-kongtiaojiafu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-genghuanzhiwensuo"></use>
                    </svg>
                    <div class="name">更换指纹锁</div>
                    <div class="fontclass">#icon-genghuanzhiwensuo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weilaijia"></use>
                    </svg>
                    <div class="name">未来家</div>
                    <div class="fontclass">#icon-weilaijia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wodexinxi"></use>
                    </svg>
                    <div class="name">我的信息</div>
                    <div class="fontclass">#icon-wodexinxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chujiaquan"></use>
                    </svg>
                    <div class="name">除甲醛</div>
                    <div class="fontclass">#icon-chujiaquan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-yuying"></use>
                    </svg>
                    <div class="name">育婴</div>
                    <div class="fontclass">#icon-yuying</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jifenduihuan"></use>
                    </svg>
                    <div class="name">积分兑换</div>
                    <div class="fontclass">#icon-jifenduihuan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-qiandaosongjifen"></use>
                    </svg>
                    <div class="name">签到送积分</div>
                    <div class="fontclass">#icon-qiandaosongjifen</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wodedingdan"></use>
                    </svg>
                    <div class="name">我的订单</div>
                    <div class="fontclass">#icon-wodedingdan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-woyaochongzhi"></use>
                    </svg>
                    <div class="name">我要充值</div>
                    <div class="fontclass">#icon-woyaochongzhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jujiakaihuangbaojie"></use>
                    </svg>
                    <div class="name">居家开荒保洁</div>
                    <div class="fontclass">#icon-jujiakaihuangbaojie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xingxing"></use>
                    </svg>
                    <div class="name">星星</div>
                    <div class="fontclass">#icon-xingxing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-baomu"></use>
                    </svg>
                    <div class="name">保姆</div>
                    <div class="fontclass">#icon-baomu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-menjinxitong"></use>
                    </svg>
                    <div class="name">门禁系统</div>
                    <div class="fontclass">#icon-menjinxitong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-diannaoweixiu"></use>
                    </svg>
                    <div class="name">电脑维修</div>
                    <div class="fontclass">#icon-diannaoweixiu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-xiwan"></use>
                    </svg>
                    <div class="name">洗碗</div>
                    <div class="fontclass">#icon-xiwan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dayinjiweixiu"></use>
                    </svg>
                    <div class="name">打印机维修</div>
                    <div class="fontclass">#icon-dayinjiweixiu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jiankongshebei"></use>
                    </svg>
                    <div class="name">监控设备</div>
                    <div class="fontclass">#icon-jiankongshebei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shouna"></use>
                    </svg>
                    <div class="name">收纳</div>
                    <div class="fontclass">#icon-shouna</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-taocanliebiao"></use>
                    </svg>
                    <div class="name">套餐列表</div>
                    <div class="fontclass">#icon-taocanliebiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-quanwuqingjie"></use>
                    </svg>
                    <div class="name">全屋清洁</div>
                    <div class="fontclass">#icon-quanwuqingjie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-waiqiangqingjie"></use>
                    </svg>
                    <div class="name">外墙清洁</div>
                    <div class="fontclass">#icon-waiqiangqingjie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dibandala"></use>
                    </svg>
                    <div class="name">地板打蜡</div>
                    <div class="fontclass">#icon-dibandala</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-weixinzhifu"></use>
                    </svg>
                    <div class="name">微信支付</div>
                    <div class="fontclass">#icon-weixinzhifu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-jifenqiandao"></use>
                    </svg>
                    <div class="name">积分签到</div>
                    <div class="fontclass">#icon-jifenqiandao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhucedizhi"></use>
                    </svg>
                    <div class="name">注册地址</div>
                    <div class="fontclass">#icon-zhucedizhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shoujihaoma"></use>
                    </svg>
                    <div class="name">手机号码</div>
                    <div class="fontclass">#icon-shoujihaoma</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-zhucexingming"></use>
                    </svg>
                    <div class="name">注册姓名</div>
                    <div class="fontclass">#icon-zhucexingming</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-wangluoweixiu"></use>
                    </svg>
                    <div class="name">网络维修</div>
                    <div class="fontclass">#icon-wangluoweixiu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-dianluweixiu"></use>
                    </svg>
                    <div class="name">电路维修</div>
                    <div class="fontclass">#icon-dianluweixiu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-bingxiweixiu"></use>
                    </svg>
                    <div class="name">冰洗维修</div>
                    <div class="fontclass">#icon-bingxiweixiu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-chuweiweixiu"></use>
                    </svg>
                    <div class="name">厨卫维修</div>
                    <div class="fontclass">#icon-chuweiweixiu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-quyuwangzujian"></use>
                    </svg>
                    <div class="name">区域网组建</div>
                    <div class="fontclass">#icon-quyuwangzujian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-duigou"></use>
                    </svg>
                    <div class="name">对勾</div>
                    <div class="fontclass">#icon-duigou</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#icon-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
